package com.xiaoc.bulldozer.common.dto;

import org.apache.commons.lang3.StringUtils;

import com.xiaoc.bulldozer.common.model.AwardPartner;

/**
 * AwardPartern Dto
 *
 * @author Danfo Yam
 *
 * @date 2018-08-27 18:32:51
 */
public class AwardPartnerDto extends AwardPartner {
    
    private static final long serialVersionUID = 1L;

    private String avatarUrl;

    private String nickName;

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {

        if (StringUtils.isEmpty(nickName)) {
            this.nickName = nickName;
        }else {
            this.nickName = nickName.replaceAll("\\\\", "\\\\\\\\");
        }
    }
}
